package com.wangyang.mapper;

import com.wangyang.pojo.Article;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleMapper {
    int addArticle(Article article);
    List<Article> getAriticleByCreateuser(@Param("createUser") Integer uid, @Param("categoryId") Integer categoryId, @Param("state") String state);
    Article getArticleyById(@Param("id") Integer id);
    int updateArticle(@Param("Nariticle") Article article);
    int deleteArticleById(@Param("id") Integer id);
}
